Spaces:
Running
Running
Gianpaolo Macario
commited on
Commit
·
47058bf
1
Parent(s):
155b533
fix: update project name in pyproject.toml to match repository
Browse files- app2.py +11 -1
- pyproject.toml +1 -1
app2.py
CHANGED
@@ -1,8 +1,18 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
import gradio as gr
|
|
|
|
|
|
|
3 |
app = FastAPI()
|
|
|
4 |
@app.get("/")
|
5 |
def read_main():
|
6 |
return {"message": "This is your main app"}
|
|
|
7 |
io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from fastapi import FastAPI
|
2 |
import gradio as gr
|
3 |
+
|
4 |
+
print("DEBUG: app2.py starting")
|
5 |
+
|
6 |
app = FastAPI()
|
7 |
+
|
8 |
@app.get("/")
|
9 |
def read_main():
|
10 |
return {"message": "This is your main app"}
|
11 |
+
|
12 |
io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
|
13 |
+
print(f"DEBUG: io={io}")
|
14 |
+
|
15 |
+
app = gr.mount_gradio_app(app, io, path="/gradio")
|
16 |
+
print(f"DEBUG: app={app}")
|
17 |
+
|
18 |
+
# EOF
|
pyproject.toml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[project]
|
2 |
-
name = "
|
3 |
version = "0.1.0"
|
4 |
description = "FastAPI and Gradio app for Hugging Face Hub discussion webhooks"
|
5 |
readme = "README.md"
|
|
|
1 |
[project]
|
2 |
+
name = "hf-pr-agent"
|
3 |
version = "0.1.0"
|
4 |
description = "FastAPI and Gradio app for Hugging Face Hub discussion webhooks"
|
5 |
readme = "README.md"
|