abdo-Mansour commited on
Commit
49d8cb8
Β·
1 Parent(s): 3018a10
Files changed (4) hide show
  1. .env +3 -0
  2. README.md +1 -0
  3. Solution/main2.py +3 -3
  4. app.py +0 -1
.env ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ GEMINI_API_KEY = AIzaSyDXwl3ofg_iVvXF1NJrWTLWrnO_zcaSarw
2
+ GOOGLE_API_KEY = AIzaSyCAYYafzXtO4QTGOPMyVhJKg9r3MUJRhNc
3
+ HUGGINGFACE_API_KEY = hf_ZyBdtmNygQxAxFbVhwmFIKivAiCkYDuwzVv
README.md CHANGED
@@ -8,6 +8,7 @@ sdk_version: 5.33.1
8
  app_file: app.py
9
  pinned: True
10
  short_description: 'Shopping AI Assistant '
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  app_file: app.py
9
  pinned: True
10
  short_description: 'Shopping AI Assistant '
11
+ tags: agent-demo-track
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Solution/main2.py CHANGED
@@ -2,7 +2,7 @@
2
  import yaml
3
  import asyncio
4
  from datetime import datetime
5
- from phoenix.otel import register
6
  from llama_index.core.workflow import Context
7
  from src.llms.gemini_2_flash import create_gemini
8
  from llama_index.core.tools import QueryEngineTool
@@ -135,10 +135,10 @@ async def main():
135
 
136
  # phoenix handler
137
  # Register the tracer provider (connects to OpenTelemetry)
138
- tracer_provider = register()
139
 
140
  # Instrument LlamaIndex with OpenInference
141
- LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)
142
 
143
  # Create LLM with callback manager
144
  llm = create_gemini()
 
2
  import yaml
3
  import asyncio
4
  from datetime import datetime
5
+ # from phoenix.otel import register
6
  from llama_index.core.workflow import Context
7
  from src.llms.gemini_2_flash import create_gemini
8
  from llama_index.core.tools import QueryEngineTool
 
135
 
136
  # phoenix handler
137
  # Register the tracer provider (connects to OpenTelemetry)
138
+ # tracer_provider = register()
139
 
140
  # Instrument LlamaIndex with OpenInference
141
+ # LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)
142
 
143
  # Create LLM with callback manager
144
  llm = create_gemini()
app.py CHANGED
@@ -615,7 +615,6 @@ with gr.Blocks(css=custom_css, title="Buyverse - AI Shopping Agent", theme=gr.th
615
  # Launch the app
616
  if __name__ == "__main__":
617
  demo.launch(
618
- share=True,
619
  server_name="0.0.0.0",
620
  server_port=7860,
621
  show_error=True
 
615
  # Launch the app
616
  if __name__ == "__main__":
617
  demo.launch(
 
618
  server_name="0.0.0.0",
619
  server_port=7860,
620
  show_error=True