Spaces:
Runtime error
Runtime error
Commit
·
00af017
1
Parent(s):
72e23af
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ def the_process(input_text, model_choice):
|
|
18 |
return(output)
|
19 |
|
20 |
gr.HTML("""<h1 style="font-weight:600;font-size:50;margin-top:4px;margin-bottom:4px;text-align:center;">Text to Code Generation</h1></div>""")
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
interface = gr.Interface(fn=the_process, inputs=[input_text, model_choice], outputs="text")
|
26 |
interface.launch()
|
|
|
18 |
return(output)
|
19 |
|
20 |
gr.HTML("""<h1 style="font-weight:600;font-size:50;margin-top:4px;margin-bottom:4px;text-align:center;">Text to Code Generation</h1></div>""")
|
21 |
+
model_choice = gr.Dropdown(label="Select Model", choices=[m for m in models], type="index", interactive=True)
|
22 |
+
input_text = gr.Textbox(label="Input Prompt")
|
23 |
+
output_window = gr.Textbox(label="Generated Code")
|
24 |
|
25 |
interface = gr.Interface(fn=the_process, inputs=[input_text, model_choice], outputs="text")
|
26 |
interface.launch()
|