Spaces:
Sleeping
Sleeping
Kosuke-Yamada
commited on
Commit
β’
0b93aab
1
Parent(s):
073bbfa
change file
Browse files
app.py
CHANGED
@@ -92,6 +92,10 @@ def main(text, option):
|
|
92 |
return image_path, f"{score}ηΉ", hint_text
|
93 |
|
94 |
|
|
|
|
|
|
|
|
|
95 |
with gr.Blocks() as demo:
|
96 |
with gr.Row():
|
97 |
with gr.Column():
|
@@ -114,8 +118,6 @@ with gr.Blocks() as demo:
|
|
114 |
output_image = gr.components.Image(type="filepath", label="ηζη»ε")
|
115 |
output_score = gr.components.Textbox(lines=1, label="γΉγ³γ’")
|
116 |
output_hint_text = gr.components.Textbox(lines=1, label="γγ³γ")
|
117 |
-
with gr.Row():
|
118 |
-
gr.Dropdown()
|
119 |
|
120 |
submit_button.click(
|
121 |
main,
|
|
|
92 |
return image_path, f"{score}ηΉ", hint_text
|
93 |
|
94 |
|
95 |
+
questions = ["Q1", "Q2", "Q3"]
|
96 |
+
for q in questions:
|
97 |
+
image_path = generate_image(os.getenv(q))
|
98 |
+
|
99 |
with gr.Blocks() as demo:
|
100 |
with gr.Row():
|
101 |
with gr.Column():
|
|
|
118 |
output_image = gr.components.Image(type="filepath", label="ηζη»ε")
|
119 |
output_score = gr.components.Textbox(lines=1, label="γΉγ³γ’")
|
120 |
output_hint_text = gr.components.Textbox(lines=1, label="γγ³γ")
|
|
|
|
|
121 |
|
122 |
submit_button.click(
|
123 |
main,
|