Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,13 +65,14 @@ def sketch_to_text(image, api_key):
|
|
65 |
with gr.Blocks() as iface:
|
66 |
gr.Markdown("# Pictionary with Llama3.2 Instruct")
|
67 |
gr.Markdown("Draw something and let Llama3.2 guess it! [Powered by SambaNova Cloud, Get Your API Key Here](https://cloud.sambanova.ai/apis)")
|
68 |
-
with gr.Row():
|
69 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="(Optional) Enter your API key here for more availability")
|
70 |
-
with gr.
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
75 |
|
76 |
input_image.change(fn=sketch_to_text, inputs=[input_image, api_key], outputs=output)
|
77 |
|
|
|
65 |
with gr.Blocks() as iface:
|
66 |
gr.Markdown("# Pictionary with Llama3.2 Instruct")
|
67 |
gr.Markdown("Draw something and let Llama3.2 guess it! [Powered by SambaNova Cloud, Get Your API Key Here](https://cloud.sambanova.ai/apis)")
|
68 |
+
with gr.Row(scale=1):
|
69 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="(Optional) Enter your API key here for more availability")
|
70 |
+
with gr.Row(scale=1):
|
71 |
+
with gr.Column(scale=1):
|
72 |
+
output = gr.Textbox(label="Description", lines=5)
|
73 |
+
|
74 |
+
with gr.Column(scale=1):
|
75 |
+
input_image = gr.ImageEditor()
|
76 |
|
77 |
input_image.change(fn=sketch_to_text, inputs=[input_image, api_key], outputs=output)
|
78 |
|