Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ async def generate_text(prompt):
|
|
16 |
|
17 |
# Create Gradio interface
|
18 |
inputs = gr.Textbox(label="Enter a prompt", lines=2)
|
19 |
-
outputs = gr.Textbox(label="Generated Text", placeholder="Generated text will appear here",
|
20 |
|
21 |
def predict(prompt):
|
22 |
output_text = asyncio.run(generate_text(prompt))
|
@@ -26,3 +26,4 @@ iface = gr.Interface(fn=predict, inputs=inputs, outputs=outputs, title="Hugging
|
|
26 |
|
27 |
if __name__ == "__main__":
|
28 |
iface.launch()
|
|
|
|
16 |
|
17 |
# Create Gradio interface
|
18 |
inputs = gr.Textbox(label="Enter a prompt", lines=2)
|
19 |
+
outputs = gr.Textbox(label="Generated Text", placeholder="Generated text will appear here", disabled=True)
|
20 |
|
21 |
def predict(prompt):
|
22 |
output_text = asyncio.run(generate_text(prompt))
|
|
|
26 |
|
27 |
if __name__ == "__main__":
|
28 |
iface.launch()
|
29 |
+
|