Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,17 +70,17 @@ with gr.Blocks() as demo:
|
|
| 70 |
label="注意",
|
| 71 |
show_label=False,
|
| 72 |
)
|
| 73 |
-
|
| 74 |
-
# gr.Markdown(f"Model: {filename} ")
|
| 75 |
-
|
| 76 |
-
loading_status = gr.Textbox(label="Loading Status")
|
| 77 |
-
|
| 78 |
with gr.Row():
|
| 79 |
input_text = gr.Textbox(label="プロンプトを入力してください")
|
| 80 |
temperature = gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature")
|
| 81 |
|
| 82 |
output_text = gr.Textbox(label="生成されたレスポンス")
|
| 83 |
submit_button = gr.Button("送信")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
submit_button.click(fn=greet, inputs=[input_text, temperature], outputs=output_text)
|
| 86 |
input_text.submit(fn=greet, inputs=[input_text, temperature], outputs=output_text)
|
|
|
|
| 70 |
label="注意",
|
| 71 |
show_label=False,
|
| 72 |
)
|
| 73 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
with gr.Row():
|
| 75 |
input_text = gr.Textbox(label="プロンプトを入力してください")
|
| 76 |
temperature = gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature")
|
| 77 |
|
| 78 |
output_text = gr.Textbox(label="生成されたレスポンス")
|
| 79 |
submit_button = gr.Button("送信")
|
| 80 |
+
|
| 81 |
+
gr.Textbox(value=filename, label="モデル", interactive=False)
|
| 82 |
+
loading_status = gr.Textbox(label="Loading Status")
|
| 83 |
+
|
| 84 |
|
| 85 |
submit_button.click(fn=greet, inputs=[input_text, temperature], outputs=output_text)
|
| 86 |
input_text.submit(fn=greet, inputs=[input_text, temperature], outputs=output_text)
|