Kikolool commited on
Commit
a75e4d6
·
verified ·
1 Parent(s): 46abeba

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +0 -1
  2. py-server.py +2 -1
README.md CHANGED
@@ -3,5 +3,4 @@ title: VibeLearning
3
  app_file: ./py-server.py
4
  sdk: gradio
5
  sdk_version: 5.35.0
6
- app_port: 7861
7
  ---
 
3
  app_file: ./py-server.py
4
  sdk: gradio
5
  sdk_version: 5.35.0
 
6
  ---
py-server.py CHANGED
@@ -12,6 +12,7 @@ from asyncio import sleep
12
  import uuid
13
  import shutil
14
  import os
 
15
  from markitdown import MarkItDown
16
  from dotenv import load_dotenv
17
  from convert import clean_json_string
@@ -91,7 +92,7 @@ def start_voice_session(request: StartSessionRequest):
91
  # Launch the Gradio app in a separate thread and get the shareable URL
92
  # `share=True` is necessary to make it accessible from the internet.
93
  # In a production environment, you would host this behind a proper domain.
94
- share_url = stream.ui.launch(share=True)
95
 
96
  print(f"Session created. Frontend can connect at: {share_url}")
97
  return {"session_url": share_url}
 
12
  import uuid
13
  import shutil
14
  import os
15
+ import gradio
16
  from markitdown import MarkItDown
17
  from dotenv import load_dotenv
18
  from convert import clean_json_string
 
92
  # Launch the Gradio app in a separate thread and get the shareable URL
93
  # `share=True` is necessary to make it accessible from the internet.
94
  # In a production environment, you would host this behind a proper domain.
95
+ share_url = stream.ui.launch(share=True, strict_cors=False)
96
 
97
  print(f"Session created. Frontend can connect at: {share_url}")
98
  return {"session_url": share_url}