Spaces:
Runtime error
Runtime error
Commit
·
7c76e98
1
Parent(s):
154a404
Add application file2
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -64,7 +64,7 @@ async def generate_and_display_diagram(description, option, existing_svg=None):
|
|
| 64 |
svg_file = await create_svg_file(svg_code)
|
| 65 |
return svg_code, svg_file
|
| 66 |
|
| 67 |
-
with gr.Blocks(theme=gr.themes.Monochrome()
|
| 68 |
description_input = gr.Textbox(label="Description")
|
| 69 |
option_input = gr.Radio(choices=["Gerar novo", "Refinar anterior", "Refinar existente"], label="Opção")
|
| 70 |
existing_svg_input = gr.File(label="Upload Existing SVG (Optional)", visible=False)
|
|
|
|
| 64 |
svg_file = await create_svg_file(svg_code)
|
| 65 |
return svg_code, svg_file
|
| 66 |
|
| 67 |
+
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
| 68 |
description_input = gr.Textbox(label="Description")
|
| 69 |
option_input = gr.Radio(choices=["Gerar novo", "Refinar anterior", "Refinar existente"], label="Opção")
|
| 70 |
existing_svg_input = gr.File(label="Upload Existing SVG (Optional)", visible=False)
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
groq
|
| 2 |
-
gradio==4.
|
| 3 |
svgwrite
|
| 4 |
aiofiles
|
|
|
|
| 1 |
groq
|
| 2 |
+
gradio==4.29.0
|
| 3 |
svgwrite
|
| 4 |
aiofiles
|