Akjava commited on
Commit
bc68f27
·
1 Parent(s): e1df603

remove scroll unknown license

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. scroll.js +0 -19
app.py CHANGED
@@ -140,7 +140,7 @@ window.reset_tts_text = reset_tts_text
140
  </script>
141
  '''
142
 
143
- with gr.Blocks(title="LLM with TTS",head=head,js="scroll.js") as demo:
144
  gr.Markdown("## A LLM is unstable:The inference client used in this demo exhibits inconsistent performance. While it can provide responses in milliseconds, it sometimes becomes unresponsive and times out.")
145
  gr.Markdown("## TTS talke a long loading time:Please be patient, the first response may have a delay of up to over 20 seconds while loading.")
146
  gr.Markdown("**Mistral-7B-Instruct-v0.3/LJSpeech**.LLM and TTS models will change without notice.")
 
140
  </script>
141
  '''
142
 
143
+ with gr.Blocks(title="LLM with TTS",head=head) as demo:
144
  gr.Markdown("## A LLM is unstable:The inference client used in this demo exhibits inconsistent performance. While it can provide responses in milliseconds, it sometimes becomes unresponsive and times out.")
145
  gr.Markdown("## TTS talke a long loading time:Please be patient, the first response may have a delay of up to over 20 seconds while loading.")
146
  gr.Markdown("**Mistral-7B-Instruct-v0.3/LJSpeech**.LLM and TTS models will change without notice.")
scroll.js DELETED
@@ -1,19 +0,0 @@
1
- // see https://github.com/gradio-app/gradio/issues/8253
2
- // UNKNOWN LICENSE
3
-
4
- function Scrolldown() {
5
- let targetNode = document.querySelector('[aria-label="chatbot conversation"]')
6
- // Options for the observer (which mutations to observe)
7
- const config = { attributes: true, childList: true, subtree: true };
8
-
9
- // Callback function to execute when mutations are observed
10
- const callback = (mutationList, observer) => {
11
- targetNode.scrollTop = targetNode.scrollHeight;
12
- };
13
-
14
- // Create an observer instance linked to the callback function
15
- const observer = new MutationObserver(callback);
16
-
17
- // Start observing the target node for configured mutations
18
- observer.observe(targetNode, config);
19
- }