Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,20 @@ temperature = st.sidebar.slider("Temperature", 0.0, 1.0, 0.7, 0.1)
|
|
38 |
top_p = st.sidebar.slider("Top-p", 0.0, 1.0, 0.95, 0.05)
|
39 |
max_tokens = st.sidebar.slider("Max Tokens", 100, 1024, 512, 50)
|
40 |
|
41 |
-
# Initialize Assistant with Arxiv Toolkit
|
42 |
-
assistant = Assistant(llm=client, tools=[ArxivToolkit()])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
# Get the search query from the user
|
45 |
query = st.text_input("Enter your research query or topic:")
|
|
|
38 |
top_p = st.sidebar.slider("Top-p", 0.0, 1.0, 0.95, 0.05)
|
39 |
max_tokens = st.sidebar.slider("Max Tokens", 100, 1024, 512, 50)
|
40 |
|
41 |
+
# # Initialize Assistant with Arxiv Toolkit
|
42 |
+
# assistant = Assistant(llm=client, tools=[ArxivToolkit()])
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
from phi.llms.huggingface import HuggingFaceLLM as BaseHuggingFaceLLM # Check the actual import path for your framework
|
48 |
+
|
49 |
+
# Ensure compatibility with the expected LLM interface
|
50 |
+
llm_instance = BaseHuggingFaceLLM(model=raw_client)
|
51 |
+
|
52 |
+
# Initialize the Assistant
|
53 |
+
assistant = Assistant(llm=llm_instance, tools=[ArxivToolkit()])
|
54 |
+
|
55 |
|
56 |
# Get the search query from the user
|
57 |
query = st.text_input("Enter your research query or topic:")
|