Spaces:
Runtime error
Runtime error
Commit
•
5a9298b
1
Parent(s):
c328ca2
fix
Browse files- app.py +2 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -162,7 +162,6 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
162 |
<p style="font-size: 12px; text-align: center">⚠️ Takes approximately 15-30s to generate.</p>
|
163 |
""")
|
164 |
|
165 |
-
output_box = gr.Textbox(lines=2, interactive=False)
|
166 |
|
167 |
triplets = gr.Textbox(lines=3, placeholder="('Steve Holland', 'current club', 'Chelsea F.C.'); ('Chelsea F.C.', 'owner', 'Roman Abramovich');", label='Triplets')
|
168 |
question = gr.Textbox(lines=4, placeholder='Write a question here, if you want to generate answer based on question.', label='Question')
|
@@ -170,6 +169,8 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
170 |
with gr.Row():
|
171 |
run_button = gr.Button("Generate", variant="primary")
|
172 |
clear_button = gr.ClearButton(variant="secondary")
|
|
|
|
|
173 |
|
174 |
with gr.Accordion("Options", open=False):
|
175 |
temperature = gr.Slider(label="Temperature", minimum=0.0, maximum=1.0, value=0.2, step=0.1)
|
|
|
162 |
<p style="font-size: 12px; text-align: center">⚠️ Takes approximately 15-30s to generate.</p>
|
163 |
""")
|
164 |
|
|
|
165 |
|
166 |
triplets = gr.Textbox(lines=3, placeholder="('Steve Holland', 'current club', 'Chelsea F.C.'); ('Chelsea F.C.', 'owner', 'Roman Abramovich');", label='Triplets')
|
167 |
question = gr.Textbox(lines=4, placeholder='Write a question here, if you want to generate answer based on question.', label='Question')
|
|
|
169 |
with gr.Row():
|
170 |
run_button = gr.Button("Generate", variant="primary")
|
171 |
clear_button = gr.ClearButton(variant="secondary")
|
172 |
+
|
173 |
+
output_box = gr.Textbox(lines=2, interactive=False, label="Generated Text")
|
174 |
|
175 |
with gr.Accordion("Options", open=False):
|
176 |
temperature = gr.Slider(label="Temperature", minimum=0.0, maximum=1.0, value=0.2, step=0.1)
|
requirements.txt
CHANGED
@@ -2,4 +2,5 @@ accelerate==0.20.3
|
|
2 |
bitsandbytes==0.39.0
|
3 |
sentencepiece==0.1.99
|
4 |
torch==2.0.1
|
5 |
-
transformers==4.31.0
|
|
|
|
2 |
bitsandbytes==0.39.0
|
3 |
sentencepiece==0.1.99
|
4 |
torch==2.0.1
|
5 |
+
transformers==4.31.0
|
6 |
+
scipy==1.10.1
|