Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from huggingface_hub import login
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
|
5 |
|
6 |
# Fetch API token from environment variable
|
7 |
api_token = os.getenv("Llama_Token")
|
|
|
2 |
import gradio as gr
|
3 |
from huggingface_hub import login
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
5 |
+
import torch
|
6 |
+
from transformers import pipeline
|
7 |
|
8 |
# Fetch API token from environment variable
|
9 |
api_token = os.getenv("Llama_Token")
|