Spaces:
Build error
Build error
Update settings
Browse files- app.py +1 -1
- share_btn.py +4 -3
app.py
CHANGED
@@ -128,7 +128,7 @@ with gr.Blocks(css=css) as demo:
|
|
128 |
|
129 |
with gr.Row():
|
130 |
with gr.Column(scale=0.3, min_width=0):
|
131 |
-
ret_scale_factor = gr.Slider(minimum=0.0, maximum=3.0, value=1.
|
132 |
max_ret_images = gr.Number(minimum=0, maximum=3, value=1, precision=1, interactive=True, label="Max images to return")
|
133 |
gr_max_len = gr.Number(value=32, precision=1, label="Max # of words returned", interactive=True)
|
134 |
gr_temperature = gr.Number(value=0.0, label="Temperature", interactive=True)
|
|
|
128 |
|
129 |
with gr.Row():
|
130 |
with gr.Column(scale=0.3, min_width=0):
|
131 |
+
ret_scale_factor = gr.Slider(minimum=0.0, maximum=3.0, value=1.0, step=0.1, interactive=True, label="Multiplier for returning images (higher means more frequent)")
|
132 |
max_ret_images = gr.Number(minimum=0, maximum=3, value=1, precision=1, interactive=True, label="Max images to return")
|
133 |
gr_max_len = gr.Number(value=32, precision=1, label="Max # of words returned", interactive=True)
|
134 |
gr_temperature = gr.Number(value=0.0, label="Temperature", interactive=True)
|
share_btn.py
CHANGED
@@ -28,8 +28,9 @@ share_js = """async () => {
|
|
28 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
29 |
const outputChat = gradioEl.querySelector('#chatbot').value;
|
30 |
const inputPromptEl = "test test";
|
31 |
-
const outputChatbot = await getInputVideoFile(outputVideoEl);
|
32 |
-
const urlChatbotImage = await uploadFile(outputChatbot);
|
|
|
33 |
|
34 |
let titleTxt = `FROMAGe: ${inputPromptEl}`;
|
35 |
|
@@ -42,7 +43,7 @@ share_js = """async () => {
|
|
42 |
const descriptionMd = `
|
43 |
## ${inputPromptEl}
|
44 |
|
45 |
-
${
|
46 |
`;
|
47 |
const params = new URLSearchParams({
|
48 |
title: titleTxt,
|
|
|
28 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
29 |
const outputChat = gradioEl.querySelector('#chatbot').value;
|
30 |
const inputPromptEl = "test test";
|
31 |
+
//const outputChatbot = await getInputVideoFile(outputVideoEl);
|
32 |
+
//const urlChatbotImage = await uploadFile(outputChatbot);
|
33 |
+
const urlChatbotImage = "placeholder";
|
34 |
|
35 |
let titleTxt = `FROMAGe: ${inputPromptEl}`;
|
36 |
|
|
|
43 |
const descriptionMd = `
|
44 |
## ${inputPromptEl}
|
45 |
|
46 |
+
${urlChatbotImage}
|
47 |
`;
|
48 |
const params = new URLSearchParams({
|
49 |
title: titleTxt,
|