Spaces:
Runtime error
Runtime error
Update app_dialogue.py
Browse files- app_dialogue.py +24 -9
app_dialogue.py
CHANGED
@@ -58,7 +58,8 @@ BAN_TOKENS = ( # For documentation puporse. We are not using this list, it is h
|
|
58 |
EOS_STRINGS = ["<end_of_utterance>", "\nUser:"]
|
59 |
STOP_SUSPECT_LIST = []
|
60 |
|
61 |
-
GRADIO_LINK = "https://huggingfacem4-idefics-playground.hf.space"
|
|
|
62 |
API_TOKEN = os.getenv("HF_AUTH_TOKEN")
|
63 |
IDEFICS_LOGO = "https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/resolve/main/IDEFICS_logo.png"
|
64 |
|
@@ -425,18 +426,32 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
425 |
# ],
|
426 |
)
|
427 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
with gr.Group():
|
429 |
with gr.Row():
|
430 |
with gr.Column(scale=0.6):
|
431 |
textbox.render()
|
432 |
-
with gr.Column(scale=0.
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
|
|
|
|
440 |
# with gr.Group():
|
441 |
# with gr.Row():
|
442 |
# with gr.Column(scale=1, min_width=50):
|
|
|
58 |
EOS_STRINGS = ["<end_of_utterance>", "\nUser:"]
|
59 |
STOP_SUSPECT_LIST = []
|
60 |
|
61 |
+
#GRADIO_LINK = "https://huggingfacem4-idefics-playground.hf.space"
|
62 |
+
GRADIO_LINK = "https://ysharma-dummy-123.hf.space"
|
63 |
API_TOKEN = os.getenv("HF_AUTH_TOKEN")
|
64 |
IDEFICS_LOGO = "https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/resolve/main/IDEFICS_logo.png"
|
65 |
|
|
|
426 |
# ],
|
427 |
)
|
428 |
|
429 |
+
#with gr.Group():
|
430 |
+
# with gr.Row():
|
431 |
+
# with gr.Column(scale=0.6):
|
432 |
+
# textbox.render()
|
433 |
+
# with gr.Column(scale=0.1, min_width=0):
|
434 |
+
# submit_btn = gr.Button(value="▶️ Submit", visible=True)
|
435 |
+
# with gr.Column(scale=0.1, min_width=0):
|
436 |
+
# clear_btn = gr.ClearButton([textbox, imagebox, chatbot], value="🧹 Clear")
|
437 |
+
# with gr.Column(scale=0.1, min_width=0):
|
438 |
+
# regenerate_btn = gr.Button(value="🔄 Regenerate", visible=True)
|
439 |
+
# with gr.Column(scale=0.1, min_width=):
|
440 |
+
# upload_btn = gr.UploadButton("📁 Upload image", file_types=["image"])
|
441 |
with gr.Group():
|
442 |
with gr.Row():
|
443 |
with gr.Column(scale=0.6):
|
444 |
textbox.render()
|
445 |
+
with gr.Column(scale=0.4): #, min_width=0):
|
446 |
+
with gr.Group():
|
447 |
+
with gr.Row():
|
448 |
+
submit_btn = gr.Button(value="▶️ Submit", visible=True)
|
449 |
+
#with gr.Column(scale=0.1, min_width=0):
|
450 |
+
clear_btn = gr.ClearButton([textbox, imagebox, chatbot], value="🧹 Clear")
|
451 |
+
#with gr.Column(scale=0.1, min_width=0):
|
452 |
+
regenerate_btn = gr.Button(value="🔄 Regenerate", visible=True)
|
453 |
+
#with gr.Column(scale=0.1, min_width=):
|
454 |
+
upload_btn = gr.UploadButton("📁 Upload image", file_types=["image"])
|
455 |
# with gr.Group():
|
456 |
# with gr.Row():
|
457 |
# with gr.Column(scale=1, min_width=50):
|