Spaces:
Running
Running
Commit
·
5f33e85
0
Parent(s):
Initial test deployment
Browse files- README.md +9 -0
- app.py +15 -0
- requirements.txt +1 -0
README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Test Space
|
| 3 |
+
sdk: gradio
|
| 4 |
+
sdk_version: 4.0.0
|
| 5 |
+
app_file: app.py
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Test Space
|
| 9 |
+
Simple test application.
|
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
print("App starting...")
|
| 3 |
+
|
| 4 |
+
def dummy_response(prompt, max_tokens=100):
|
| 5 |
+
return f"Test response to: {prompt[:50]}..."
|
| 6 |
+
|
| 7 |
+
demo = gr.Interface(
|
| 8 |
+
fn=dummy_response,
|
| 9 |
+
inputs=gr.Textbox(label="Prompt"),
|
| 10 |
+
outputs=gr.Textbox(label="Response"),
|
| 11 |
+
title="Test Space"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
demo.launch(server_name="0.0.0.0")
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio
|