Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -78,15 +78,17 @@ demo = gr.Blocks()
|
|
78 |
with demo:
|
79 |
gr.Markdown("<h1><center>Bloom</center></h1>")
|
80 |
gr.Markdown(
|
81 |
-
"""Testing Bloom """
|
82 |
)
|
83 |
with gr.Row():
|
84 |
-
example_prompt = gr.Radio( ["Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?\nA: Let’s think step by step.\n"], label= "Choose a sample Prompt")
|
|
|
|
|
85 |
#input_word = gr.Textbox(placeholder="Enter a word here to generate text ...")
|
86 |
generated_txt = gr.Textbox(lines=7)
|
87 |
#output_image = gr.Image(type="filepath", shape=(256,256))
|
88 |
|
89 |
-
b1 = gr.Button("Generate
|
90 |
#b2 = gr.Button("Generate Image")
|
91 |
|
92 |
b1.click(text_generate,inputs=example_prompt, outputs=generated_txt) #input_word
|
|
|
78 |
with demo:
|
79 |
gr.Markdown("<h1><center>Bloom</center></h1>")
|
80 |
gr.Markdown(
|
81 |
+
"""Testing Bloom for SQL generation """
|
82 |
)
|
83 |
with gr.Row():
|
84 |
+
#example_prompt = gr.Radio( ["Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?\nA: Let’s think step by step.\n"], label= "Choose a sample Prompt")
|
85 |
+
example_prompt = gr.Radio( ["Instruction: Given an input question, respond with syntactically correct PostgreSQL\nInput: how many users signed up in the past month?\nPostgreSQL query: "], label= "Choose a sample Prompt")
|
86 |
+
|
87 |
#input_word = gr.Textbox(placeholder="Enter a word here to generate text ...")
|
88 |
generated_txt = gr.Textbox(lines=7)
|
89 |
#output_image = gr.Image(type="filepath", shape=(256,256))
|
90 |
|
91 |
+
b1 = gr.Button("Generate SQL")
|
92 |
#b2 = gr.Button("Generate Image")
|
93 |
|
94 |
b1.click(text_generate,inputs=example_prompt, outputs=generated_txt) #input_word
|