Spaces:
Sleeping
Sleeping
jeremierostan
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,6 @@ import PyPDF2
|
|
3 |
import gradio as gr
|
4 |
from groq import Groq
|
5 |
|
6 |
-
# Protect the app
|
7 |
-
USERNAME = os.getenv('USERNAME')
|
8 |
-
PASSWORD = os.getenv('PASSWORD')
|
9 |
-
|
10 |
# Initialize Groq client
|
11 |
groq_client = Groq(api_key=os.getenv("GROQ_API_KEY"))
|
12 |
|
@@ -91,7 +87,7 @@ def handle_answer_submission(pdf_file, answer1, answer2, answer3, answer4):
|
|
91 |
return f"Final Judgment: {verification_status}\n\nAnswers Summary:\n{answers_summary}"
|
92 |
|
93 |
# Gradio Blocks for the App
|
94 |
-
with gr.Blocks() as
|
95 |
with gr.Row():
|
96 |
# Add Seshat logo
|
97 |
logo_url = "https://i.ibb.co/S7DCk3K/a-logo-design-with-a-stylized-egyptian-scribe-the-i-L59-Gh-Zn-QASp7v-TUazjdp-A-1-s-Ip-Qq-VRIif-VF5dn.png" # Replace with your actual logo URL
|
@@ -129,4 +125,4 @@ with gr.Blocks() as iface:
|
|
129 |
gr.Image(groq_url, label="", show_label=False, height=50)
|
130 |
|
131 |
# Launch the app
|
132 |
-
|
|
|
3 |
import gradio as gr
|
4 |
from groq import Groq
|
5 |
|
|
|
|
|
|
|
|
|
6 |
# Initialize Groq client
|
7 |
groq_client = Groq(api_key=os.getenv("GROQ_API_KEY"))
|
8 |
|
|
|
87 |
return f"Final Judgment: {verification_status}\n\nAnswers Summary:\n{answers_summary}"
|
88 |
|
89 |
# Gradio Blocks for the App
|
90 |
+
with gr.Blocks() as app:
|
91 |
with gr.Row():
|
92 |
# Add Seshat logo
|
93 |
logo_url = "https://i.ibb.co/S7DCk3K/a-logo-design-with-a-stylized-egyptian-scribe-the-i-L59-Gh-Zn-QASp7v-TUazjdp-A-1-s-Ip-Qq-VRIif-VF5dn.png" # Replace with your actual logo URL
|
|
|
125 |
gr.Image(groq_url, label="", show_label=False, height=50)
|
126 |
|
127 |
# Launch the app
|
128 |
+
app.launch()
|