Spaces:
Build error
Build error
Upload pages/_app.js with huggingface_hub
Browse files- pages/_app.js +15 -0
pages/_app.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import '../styles/globals.css';
|
| 2 |
+
import { useState } from 'react';
|
| 3 |
+
import ChatInterface from '../components/ChatInterface';
|
| 4 |
+
|
| 5 |
+
function MyApp({ Component, pageProps }) {
|
| 6 |
+
const [showChat, setShowChat] = useState(true);
|
| 7 |
+
|
| 8 |
+
return (
|
| 9 |
+
<div className="min-h-screen">
|
| 10 |
+
{showChat && <ChatInterface />}
|
| 11 |
+
</div>
|
| 12 |
+
);
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
export default MyApp;
|