Spaces:
Sleeping
Sleeping
Dhahlan2000
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM
|
3 |
from aksharamukha import transliterate
|
4 |
import torch
|
|
|
5 |
|
6 |
# Set up device
|
7 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
2 |
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM
|
3 |
from aksharamukha import transliterate
|
4 |
import torch
|
5 |
+
from huggingface_hub import InferenceClient
|
6 |
|
7 |
# Set up device
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|