Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,15 +4,13 @@ import requests
|
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
#import smolagents #to test
|
| 7 |
-
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
| 8 |
from huggingface_hub import InferenceClient
|
| 9 |
|
| 10 |
#Client setup
|
| 11 |
#token = HF_TOKEN
|
| 12 |
#model_repo_id = chat_completion eller question_answering
|
| 13 |
|
| 14 |
-
from smolagent import CodeAgent, LLMFunction
|
| 15 |
-
|
| 16 |
llm = LLMFunction.from_huggingface_inference_api(
|
| 17 |
repo_id="google/flan-t5-base", #
|
| 18 |
token="HF_TOKEN "
|
|
|
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
#import smolagents #to test
|
| 7 |
+
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool, LLMFunction
|
| 8 |
from huggingface_hub import InferenceClient
|
| 9 |
|
| 10 |
#Client setup
|
| 11 |
#token = HF_TOKEN
|
| 12 |
#model_repo_id = chat_completion eller question_answering
|
| 13 |
|
|
|
|
|
|
|
| 14 |
llm = LLMFunction.from_huggingface_inference_api(
|
| 15 |
repo_id="google/flan-t5-base", #
|
| 16 |
token="HF_TOKEN "
|