MrYxJ commited on
Commit
c31dd40
1 Parent(s): 28cab40
__pycache__/model_utils.cpython-39.pyc ADDED
Binary file (4.34 kB). View file
 
app.py CHANGED
@@ -8,7 +8,7 @@
8
  Mail : yxj2017@gmail.com
9
  Github : https://github.com/MrYxJ
10
  Date : 2023-09-05 23:25:28
11
- LastEditTime : 2023-09-09 20:07:54
12
  Copyright (C) 2023 mryxj. All rights reserved.
13
  '''
14
  import gradio as gr
@@ -82,7 +82,7 @@ with gr.Blocks() as demo:
82
  )
83
  print_model = gr.Textbox(label=f"Print Each Modules FLOPs、Params", visible=False,
84
  show_legend=True, show_copy_button=True)
85
-
86
  with gr.Row():
87
  inp = gr.Textbox(label="Model Name or URL", value="bert-base-cased")
88
  access_token = gr.Textbox(label="API Token", placeholder="Optional (for gated models)")
@@ -104,4 +104,4 @@ with gr.Blocks() as demo:
104
  outputs=[out_text, calculate_out, print_model]
105
  )
106
 
107
- demo.launch()
 
8
  Mail : yxj2017@gmail.com
9
  Github : https://github.com/MrYxJ
10
  Date : 2023-09-05 23:25:28
11
+ LastEditTime : 2023-09-10 00:32:22
12
  Copyright (C) 2023 mryxj. All rights reserved.
13
  '''
14
  import gradio as gr
 
82
  )
83
  print_model = gr.Textbox(label=f"Print Each Modules FLOPs、Params", visible=False,
84
  show_legend=True, show_copy_button=True)
85
+
86
  with gr.Row():
87
  inp = gr.Textbox(label="Model Name or URL", value="bert-base-cased")
88
  access_token = gr.Textbox(label="API Token", placeholder="Optional (for gated models)")
 
104
  outputs=[out_text, calculate_out, print_model]
105
  )
106
 
107
+ demo.launch()
pre-requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ pip >= 23.2.0
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
  [tool.black]
2
  line-length = 119
3
- target-version = ['py37']
4
 
5
  [tool.ruff]
6
  # Never enforce `E501` (line length violations).
 
1
  [tool.black]
2
  line-length = 119
3
+ target-version = ['py39']
4
 
5
  [tool.ruff]
6
  # Never enforce `E501` (line length violations).