Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
import os
|
| 2 |
import streamlit as st
|
| 3 |
from fastapi import FastAPI
|
| 4 |
from pydantic import BaseModel
|
|
@@ -29,8 +28,8 @@ def chat(msg: Message):
|
|
| 29 |
|
| 30 |
# ======== Funci贸n para ejecutar FastAPI en segundo plano =========
|
| 31 |
def run_api():
|
| 32 |
-
|
| 33 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
| 34 |
|
| 35 |
threading.Thread(target=run_api, daemon=True).start()
|
| 36 |
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from fastapi import FastAPI
|
| 3 |
from pydantic import BaseModel
|
|
|
|
| 28 |
|
| 29 |
# ======== Funci贸n para ejecutar FastAPI en segundo plano =========
|
| 30 |
def run_api():
|
| 31 |
+
|
| 32 |
+
uvicorn.run(app, host="0.0.0.0", port="7860")
|
| 33 |
|
| 34 |
threading.Thread(target=run_api, daemon=True).start()
|
| 35 |
|