Spaces:
Running
Running
JaphetHernandez
commited on
Commit
•
359ae4f
1
Parent(s):
93e26c1
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
from langchain.llms import HuggingFacePipeline
|
4 |
-
from
|
|
|
5 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
6 |
from huggingface_hub import login
|
7 |
import torch
|
|
|
8 |
# API Key de Hugging Face
|
9 |
huggingface_token = st.secrets["FIREWORKS"]
|
10 |
login(huggingface_token)# Autenticar
|
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
from langchain.llms import HuggingFacePipeline
|
4 |
+
from langchain_core.prompts import PromptTemplate
|
5 |
+
from langchain.chains import LLMChain
|
6 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
7 |
from huggingface_hub import login
|
8 |
import torch
|
9 |
+
|
10 |
# API Key de Hugging Face
|
11 |
huggingface_token = st.secrets["FIREWORKS"]
|
12 |
login(huggingface_token)# Autenticar
|