truegleai commited on
Commit
5f33e85
·
0 Parent(s):

Initial test deployment

Browse files
Files changed (3) hide show
  1. README.md +9 -0
  2. app.py +15 -0
  3. 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