Commit
•
eec808a
1
Parent(s):
9824528
Revise the app hosting/serving solution as per
Browse filesMicroSoft's instruction:
https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/deploy-a-gradio-web-app-on-azure-with-azure-app-service-a-step/ba-p/4121127
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
new file: host.py
modified: requirements.txt
- host.py +8 -0
- requirements.txt +5 -4
host.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from fastapi import FastAPI
|
3 |
+
|
4 |
+
from app import iface
|
5 |
+
|
6 |
+
app = FastAPI()
|
7 |
+
|
8 |
+
app = gr.mount_gradio_app(app,iface,path="/")
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
openai
|
2 |
-
gradio
|
3 |
-
pandas
|
4 |
-
|
|
|
|
1 |
+
openai==1.30.1
|
2 |
+
gradio==4.31.5
|
3 |
+
pandas==2.2.2
|
4 |
+
fastapi==0.111.0
|
5 |
+
gunicorn==22.0.0
|