D0k-tor's picture
Update app.py
a6a6318
raw
history blame
640 Bytes
import gradio as gr
import streamlit as st
# def greet(name):
# return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# iface.launch()
st.title("Image to Text using Lora")
inputs = gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
output = gr.outputs.Textbox(type="text",label="Captions")
description = "NTT Data Bilbao team"
title = "Image to Text using Lora"
interface = gr.Interface(
# fn=predict,
description=description,
inputs = inputs,
theme="grass",
outputs=output,
title=title,
)
interface.launch(debug=True)