orion / app.py
andreslu's picture
Update app.py
c9de955
raw
history blame
363 Bytes
import gradio as gr
import torch
print(f"Is CUDA available: {torch.cuda.is_available()}")
# True
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
# Tesla T4
for text in generated_texts:
print(text)
def uppercase(text):
return text.upper()
iface = gr.Interface(fn=uppercase, inputs="text", outputs="text")
iface.launch()