Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ warnings.filterwarnings('ignore')
|
|
| 4 |
import fitz # PyMuPDF for PDF processing
|
| 5 |
import docx # python-docx for DOCX processing
|
| 6 |
import gradio as gr
|
|
|
|
| 7 |
import os
|
| 8 |
from crewai import Agent, Task, Crew
|
| 9 |
from crewai_tools import SerperDevTool # Ensure it's correctly installed
|
|
@@ -21,6 +22,8 @@ if not serper_key:
|
|
| 21 |
# Set the environment variable for crewai (if needed)
|
| 22 |
os.environ['gemini_API_KEY'] = gemini_key # Correctly set the environment variable
|
| 23 |
os.environ["SERPER_API_KEY"] = serper_key
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# ... (Rest of your code remains the same)
|
| 26 |
|
|
@@ -134,5 +137,5 @@ with gr.Blocks() as demo:
|
|
| 134 |
)
|
| 135 |
|
| 136 |
demo.queue()
|
| 137 |
-
demo.launch(server_port=
|
| 138 |
|
|
|
|
| 4 |
import fitz # PyMuPDF for PDF processing
|
| 5 |
import docx # python-docx for DOCX processing
|
| 6 |
import gradio as gr
|
| 7 |
+
|
| 8 |
import os
|
| 9 |
from crewai import Agent, Task, Crew
|
| 10 |
from crewai_tools import SerperDevTool # Ensure it's correctly installed
|
|
|
|
| 22 |
# Set the environment variable for crewai (if needed)
|
| 23 |
os.environ['gemini_API_KEY'] = gemini_key # Correctly set the environment variable
|
| 24 |
os.environ["SERPER_API_KEY"] = serper_key
|
| 25 |
+
os.environ["GRADIO_SERVER_PORT"] = "7862" # Or another unused port
|
| 26 |
+
|
| 27 |
|
| 28 |
# ... (Rest of your code remains the same)
|
| 29 |
|
|
|
|
| 137 |
)
|
| 138 |
|
| 139 |
demo.queue()
|
| 140 |
+
demo.launch(server_port=7862) # Change the port number
|
| 141 |
|