Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# from gradio.themes.utils import sizes
|
| 4 |
-
# gr.themes.Size(
|
| 5 |
-
# text_lg=sizes.text_lg,
|
| 6 |
-
# text_md=sizes.text_md,
|
| 7 |
-
# text_sm=sizes.text_sm,
|
| 8 |
-
# spacing_lg=sizes.spacing_lg,
|
| 9 |
-
# spacing_md=sizes.spacing_md,
|
| 10 |
-
# spacing_sm=sizes.spacing_sm,
|
| 11 |
-
# radius_lg=sizes.radius_lg,
|
| 12 |
-
# radius_md=sizes.radius_md,
|
| 13 |
-
# radius_sm=sizes.radius_sm,
|
| 14 |
-
# )
|
| 15 |
-
|
| 16 |
import os
|
| 17 |
api_token = os.getenv("HF_TOKEN")
|
| 18 |
|
|
@@ -134,7 +121,7 @@ def demo():
|
|
| 134 |
}
|
| 135 |
#column-left {
|
| 136 |
min-width: 20px;
|
| 137 |
-
max-width:
|
| 138 |
margin-right: 10px;
|
| 139 |
}
|
| 140 |
#column-right {
|
|
@@ -209,14 +196,7 @@ def demo():
|
|
| 209 |
queue=False)
|
| 210 |
|
| 211 |
demo.queue().launch(debug=True)
|
| 212 |
-
|
| 213 |
-
# debug=True,
|
| 214 |
-
# share=False,
|
| 215 |
-
# prevent_thread_lock=True,
|
| 216 |
-
# show_error=True,
|
| 217 |
-
# width="100%", # Critical change
|
| 218 |
-
# height=800
|
| 219 |
-
# )
|
| 220 |
|
| 221 |
if __name__ == "__main__":
|
| 222 |
demo()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import os
|
| 4 |
api_token = os.getenv("HF_TOKEN")
|
| 5 |
|
|
|
|
| 121 |
}
|
| 122 |
#column-left {
|
| 123 |
min-width: 20px;
|
| 124 |
+
max-width: 50px;
|
| 125 |
margin-right: 10px;
|
| 126 |
}
|
| 127 |
#column-right {
|
|
|
|
| 196 |
queue=False)
|
| 197 |
|
| 198 |
demo.queue().launch(debug=True)
|
| 199 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
|
| 201 |
if __name__ == "__main__":
|
| 202 |
demo()
|