File size: 465 Bytes
1f074d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
from mysite.libs.utilities import process_file, no_process_file
from mysite.models.ride import Ride
from mysite.db.db import create_ride, read_rides, read_ride, update_ride, delete_ride

gr_interface = gr.Interface(
    fn=process_file,
    inputs=[
        "file",
        gr.Textbox(label="Additional Notes", lines=10),
        gr.Textbox(label="Folder Name"),
    ],
    outputs="text",
)

if __name__ == "__main__":
    gr_interface.launch()