Kosuke-Yamada commited on
Commit
0b93aab
β€’
1 Parent(s): 073bbfa

change file

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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,