Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,17 +67,17 @@ class GeminiHandler(AsyncAudioVideoStreamHandler):
|
|
67 |
return await self.video_queue.get()
|
68 |
|
69 |
async def connect(self, api_key: str, about_company: str, about_role: str, responsibilities: str, requirements: str, benefits: str, interview_questions: str):
|
70 |
-
with open("prompt.md", "r") as file:
|
71 |
-
|
72 |
-
|
73 |
-
filled_prompt = template.format(
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
)
|
81 |
|
82 |
if self.session is None:
|
83 |
client = genai.Client(api_key=api_key, http_options={"api_version": "v1alpha"})
|
|
|
67 |
return await self.video_queue.get()
|
68 |
|
69 |
async def connect(self, api_key: str, about_company: str, about_role: str, responsibilities: str, requirements: str, benefits: str, interview_questions: str):
|
70 |
+
# with open("prompt.md", "r") as file:
|
71 |
+
# template = file.read()
|
72 |
+
|
73 |
+
# filled_prompt = template.format(
|
74 |
+
# about_company=about_company,
|
75 |
+
# about_role=about_role,
|
76 |
+
# responsibilities=responsibilities,
|
77 |
+
# requirements=requirements,
|
78 |
+
# benefits=benefits,
|
79 |
+
# interview_questions=interview_questions
|
80 |
+
# )
|
81 |
|
82 |
if self.session is None:
|
83 |
client = genai.Client(api_key=api_key, http_options={"api_version": "v1alpha"})
|