Spaces:
Runtime error
Runtime error
Commit
·
41d9b0f
1
Parent(s):
09cd3a8
adds local serving with hot-reload
Browse files- Makefile +1 -1
- app.py +3 -1
- requirements.txt +1 -1
Makefile
CHANGED
|
@@ -13,7 +13,7 @@ help: ## get a list of all the targets, and their short descriptions
|
|
| 13 |
|
| 14 |
|
| 15 |
serve: ## serve this locally
|
| 16 |
-
|
| 17 |
|
| 18 |
environment: ## installs requirements
|
| 19 |
pip install -q -r requirements.txt
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
serve: ## serve this locally
|
| 16 |
+
gradio app.py
|
| 17 |
|
| 18 |
environment: ## installs requirements
|
| 19 |
pip install -q -r requirements.txt
|
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
-
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
|
| 4 |
def greet(name):
|
| 5 |
return "Hello " + name + "!!"
|
| 6 |
|
| 7 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
+
|
| 9 |
+
iface.launch(share=True)
|
requirements.txt
CHANGED
|
@@ -2,5 +2,5 @@ openai==0.26.1
|
|
| 2 |
langchain==0.0.65
|
| 3 |
python-dotenv==0.21.0
|
| 4 |
faiss-cpu==1.7.3
|
| 5 |
-
gradio==3.
|
| 6 |
srt
|
|
|
|
| 2 |
langchain==0.0.65
|
| 3 |
python-dotenv==0.21.0
|
| 4 |
faiss-cpu==1.7.3
|
| 5 |
+
gradio==3.15
|
| 6 |
srt
|