Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ def fx(x:str):
|
|
6 |
return hash.hexdigest()
|
7 |
demo=gr.Blocks()
|
8 |
with demo:
|
9 |
-
gr.Dataframe(headers=['项目','数据'],datatype=['str','number'],overflow_row_behaviour='paginate',row_count=4,interactive=True)
|
10 |
text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入需要MD5加密的测试内容")
|
11 |
bb_button=gr.Button("运行")
|
12 |
bb_button.click(fx, inputs=text_input, outputs=gr.Textbox(label="输出"),api_name='md5')
|
|
|
6 |
return hash.hexdigest()
|
7 |
demo=gr.Blocks()
|
8 |
with demo:
|
|
|
9 |
text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入需要MD5加密的测试内容")
|
10 |
bb_button=gr.Button("运行")
|
11 |
bb_button.click(fx, inputs=text_input, outputs=gr.Textbox(label="输出"),api_name='md5')
|