fixed gradio app lodo dismissed
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 38 KiB |
@@ -353,6 +353,10 @@ def gradio_Interface(model : Scraibe = None):
|
|||||||
# Define components
|
# Define components
|
||||||
hname = os.path.join(CURRENT_PATH, "header.html")
|
hname = os.path.join(CURRENT_PATH, "header.html")
|
||||||
header = open(hname, "r").read()
|
header = open(hname, "r").read()
|
||||||
|
|
||||||
|
# ugly hack to get the logo to work
|
||||||
|
header = header.replace("/file=logo.svg", f"/file={CURRENT_PATH}/logo.svg" )
|
||||||
|
|
||||||
gr.HTML(header, visible= True, show_label=False)
|
gr.HTML(header, visible= True, show_label=False)
|
||||||
|
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
@@ -384,7 +388,7 @@ def gradio_Interface(model : Scraibe = None):
|
|||||||
interactive= True, visible= False)
|
interactive= True, visible= False)
|
||||||
video1 = gr.Video(source="upload", type="filepath", label="Upload Video",
|
video1 = gr.Video(source="upload", type="filepath", label="Upload Video",
|
||||||
interactive= True, visible= False)
|
interactive= True, visible= False)
|
||||||
video2 = gr.Video(source="webcam", label="Record Video", type="filepath",
|
video2 = gr.Video(source="webcam", label="Record Video", type="filepath",include_audio= True,
|
||||||
interactive= True, visible= False)
|
interactive= True, visible= False)
|
||||||
file_in = gr.Files(label="Upload File or Files", interactive= True, visible= False)
|
file_in = gr.Files(label="Upload File or Files", interactive= True, visible= False)
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<h1>ScrAIbe</h1>
|
<h1>ScrAIbe</h1>
|
||||||
<div class="logo-container">
|
<div class="logo-container">
|
||||||
<a href="https://www.kida-bmel.de/"> <!-- Replace with your actual URL -->
|
<a href="https://www.kida-bmel.de/"> <!-- Replace with your actual URL -->
|
||||||
<img src="/file=scraibe/app/Logo_KIDA_bmel_green.svg" alt="KIDA Logo" class="logo">
|
<img src="/file=logo.svg" alt="KIDA Logo" class="logo">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user