Detsutut commited on
Commit
f453857
·
verified ·
1 Parent(s): 2f4f40d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -51,7 +51,10 @@ with gr.Blocks() as iface:
51
 
52
  btn = gr.Button("Generate")
53
  btn.click(generate_text, [input_text, max_new_tokens, temperature, top_p, split_output], output)
54
-
 
 
 
55
  # Launch the interface
56
  if __name__ == "__main__":
57
  iface.launch(inline=True)
 
51
 
52
  btn = gr.Button("Generate")
53
  btn.click(generate_text, [input_text, max_new_tokens, temperature, top_p, split_output], output)
54
+
55
+ # Embed the custom JavaScript
56
+ gr.HTML("<script src='script.js'></script>")
57
+
58
  # Launch the interface
59
  if __name__ == "__main__":
60
  iface.launch(inline=True)