nroggendorff commited on
Commit
a102191
1 Parent(s): f7c3d57

Update public/client.js

Browse files
Files changed (1) hide show
  1. public/client.js +3 -1
public/client.js CHANGED
@@ -1,9 +1,11 @@
 
 
1
  document.addEventListener("DOMContentLoaded", async () => {
2
  const messagesDiv = document.getElementById("messages");
3
  const chatForm = document.getElementById("chat-form");
4
  const userInput = document.getElementById("user-input");
5
 
6
- const client = await gradio.Client.connect("nroggendorff/not-my-emma");
7
 
8
  chatForm.addEventListener("submit", async (e) => {
9
  e.preventDefault();
 
1
+ import { Client } from "@gradio/client";
2
+
3
  document.addEventListener("DOMContentLoaded", async () => {
4
  const messagesDiv = document.getElementById("messages");
5
  const chatForm = document.getElementById("chat-form");
6
  const userInput = document.getElementById("user-input");
7
 
8
+ const client = await Client.connect("nroggendorff/not-my-emma");
9
 
10
  chatForm.addEventListener("submit", async (e) => {
11
  e.preventDefault();